#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @Time   : 2021/6/17 23:17
# @Author : cjw


def pytest_collection_modifyitems(items):
    """
    测试用例收集完成时，将收集到的item的name和_nodeid的中文显示在控制台上
    :param items: 收集到的所有用例
    :return:
    """
    for item in items:
        item.name = item.name.encode('utf-8').decode('unicode_escape')
        item._nodeid = item.nodeid.encode('utf-8').decode('unicode_escape')
